package com.ruoyi.project.configureSystem.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 用户信息对象 v_station
 * 
 * @author wangshuo
 * @date 2020-05-13
 */
public class VStation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 站点id */
    private String stationcode;

    /** 站点名称 */
    @Excel(name = "站点名称")
    private String name;

    /** 站点地址 */
    @Excel(name = "站点地址")
    private String address;

    /** 区域id */
    @Excel(name = "区域id")
    private Long areaId;

    /** 负责人 */
    @Excel(name = "负责人")
    private String contactperson;

    /** 负责人电话 */
    @Excel(name = "负责人电话")
    private String contactphone;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private Integer state;

    /** 服务户数 */
    @Excel(name = "服务户数")
    private Long servicepeople;

    /** 处理能力 */
    @Excel(name = "处理能力")
    private Double processcapacity;

    /** 建厂时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建厂时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date builddate;

    /** 站点类型（00系统用户） */
    @Excel(name = "站点类型", readConverterExp = "0=0系统用户")
    private Integer stationtype;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 采集频率 */
    @Excel(name = "采集频率")
    private String readcycle;

    /** 设备唯一标识 */
    @Excel(name = "设备唯一标识")
    private String sncode;

    /** 备用字段 */
    @Excel(name = "备用字段")
    private String beiyong;

    /** 维度 */
    @Excel(name = "维度")
    private String lat;

    private List<Long> areaIds;

    private List<Long> roleIds;

    private String areaName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String[] files;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStationcode(String stationcode) 
    {
        this.stationcode = stationcode;
    }

    public String getStationcode() 
    {
        return stationcode;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public void setContactperson(String contactperson)
    {
        this.contactperson = contactperson;
    }

    public String getContactperson() 
    {
        return contactperson;
    }
    public void setContactphone(String contactphone) 
    {
        this.contactphone = contactphone;
    }

    public String getContactphone() 
    {
        return contactphone;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setServicepeople(Long servicepeople) 
    {
        this.servicepeople = servicepeople;
    }

    public Long getServicepeople() 
    {
        return servicepeople;
    }
    public void setProcesscapacity(Double processcapacity) 
    {
        this.processcapacity = processcapacity;
    }

    public Double getProcesscapacity() 
    {
        return processcapacity;
    }
    public void setBuilddate(Date builddate) 
    {
        this.builddate = builddate;
    }

    public Date getBuilddate() 
    {
        return builddate;
    }
    public void setStationtype(Integer stationtype) 
    {
        this.stationtype = stationtype;
    }

    public Integer getStationtype() 
    {
        return stationtype;
    }
    public void setLng(String lng) 
    {
        this.lng = lng;
    }

    public String getLng() 
    {
        return lng;
    }
    public void setReadcycle(String readcycle) 
    {
        this.readcycle = readcycle;
    }

    public String getReadcycle() 
    {
        return readcycle;
    }
    public void setSncode(String sncode) 
    {
        this.sncode = sncode;
    }

    public String getSncode() 
    {
        return sncode;
    }
    public void setBeiyong(String beiyong) 
    {
        this.beiyong = beiyong;
    }

    public String getBeiyong() 
    {
        return beiyong;
    }
    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }

    public List<Long> getAreaIds() {
        return areaIds;
    }

    public void setAreaIds(List<Long> areaIds) {
        this.areaIds = areaIds;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String[] getFiles() {
        return files;
    }

    public void setFiles(String[] files) {
        this.files = files;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationcode", getStationcode())
            .append("name", getName())
            .append("address", getAddress())
            .append("areaId", getAreaId())
            .append("contactperson", getContactperson())
            .append("contactphone", getContactphone())
            .append("state", getState())
            .append("servicepeople", getServicepeople())
            .append("processcapacity", getProcesscapacity())
            .append("builddate", getBuilddate())
            .append("stationtype", getStationtype())
            .append("lng", getLng())
            .append("readcycle", getReadcycle())
            .append("sncode", getSncode())
            .append("beiyong", getBeiyong())
            .append("lat", getLat())
            .append("createTime", getCreateTime())
            .toString();
    }
}
